//
//  RW_LoginViewModel.h
//  SleepApp
//
//  Created by chuangqi on 2021/3/30.
//  Copyright © 2021 RiceWang. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    Login_View_Type_Default,//默认
    Login_View_Type_AppleLogin,//苹果登陆
    Login_View_Type_Login,//登陆
    Login_View_Type_Register,//注册
} Login_View_Type;

@interface RW_LoginViewModel : NSObject
#pragma mark -- 逻辑处理
/** 提交操作 */
-(void)netWorkLayerModel:(WLBaseCollectionViewLayerModel *)layerModel
                 success:(void(^)(id response))success
                    fail:(void(^)(NSError *error))fail;


#pragma mark -- 视图模型获取
/** 视图类型 */
@property (nonatomic,assign) Login_View_Type view_type;
/** 获取视图模型 */
-(void)getViewSuccess:(void(^)(NSArray<WLBaseCollectionViewLayerSection *> *response))success
                 fail:(void(^)(NSError *error))fail;

@end
